<?php

namespace app\common\logic;

use think\Db;

/**
 * 信息校验逻辑
 * Class SendLogic
 */
class RankLogic extends Logic
{
    /**
     * 是否绑定手机号
     * @param array $param
     * @return array
     */
    static function is_bind_phone($param = [])
    {
        $uid = $param['uid'];
        $mobile = Db::name('user')->where('id', $uid)->value('mobile');
        if (empty($mobile)) return ['code' => 0, 'msg' => '未绑定'];

        return ['code' => 1, 'msg' => '已绑定'];
    }
}